//
//  MyAttentionView.m
//  WE
//
//  Created by 要帅气的生活 on 15/11/25.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "MyAttentionView.h"
#import "Size.h"
@implementation MyAttentionView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _view = [[UIView alloc] initWithFrame:CGRectMake(self.center.x-self.frame.size.height/8, self.frame.size.height/5, self.frame.size.height/4, self.frame.size.height/4)];
        [self addSubview:_view];
        _view.layer.cornerRadius =self.frame.size.height/8;
        _view.backgroundColor = [UIColor grayColor];
        
        _img = [[UIImageView alloc] initWithFrame:CGRectMake(8, 8, _view.frame.size.width-16, _view.frame.size.width-16)];
        [_view addSubview:_img];
        _img.image = [UIImage imageNamed:@"iconfont-xunyiyuyuexiangqing"];
        //_img.backgroundColor = [UIColor yellowColor];
        
        _label = [[UILabel alloc] initWithFrame:CGRectMake(self.center.x-self.frame.size.width/4, self.frame.size.height/2, self.frame.size.width/2, 25)];
        [self addSubview:_label];
        //_label.backgroundColor = [UIColor redColor];
        
        _dsya = [[UILabel alloc] initWithFrame:CGRectMake(10, self.frame.size.height-30, self.frame.size.width/3*2, 20)];
        [self addSubview:_dsya];
        _dsya.font = [UIFont systemFontOfSize:14];
        _dsya.alpha = 0.5;
        //_dsya.backgroundColor = [UIColor purpleColor];
        
        self.backgroundColor = GRAYCOLOR;
    }
    return self;
}

@end
